Optimal. Leaf size=210 \[ \frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{(d+e x)^m \left (\frac{c (d+e x)}{2 c d-b e}\right )^{\frac{1}{2}-m} (b e g (1-2 m)-2 c (e f (1-m)-d g m)) \, _2F_1\left (-\frac{1}{2},\frac{3}{2}-m;\frac{1}{2};\frac{c d-b e-c e x}{2 c d-b e}\right )}{c e^2 (1-m) (2 c d-b e) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.329951, antiderivative size = 210, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 44, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.114, Rules used = {794, 679, 677, 70, 69} \[ \frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{(d+e x)^m \left (\frac{c (d+e x)}{2 c d-b e}\right )^{\frac{1}{2}-m} (b e g (1-2 m)-2 c (e f (1-m)-d g m)) \, _2F_1\left (-\frac{1}{2},\frac{3}{2}-m;\frac{1}{2};\frac{c d-b e-c e x}{2 c d-b e}\right )}{c e^2 (1-m) (2 c d-b e) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 794
Rule 679
Rule 677
Rule 70
Rule 69
Rubi steps
\begin{align*} \int \frac{(d+e x)^m (f+g x)}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx &=\frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{(b e g (1-2 m)-2 c (e f (1-m)-d g m)) \int \frac{(d+e x)^m}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx}{2 c e (1-m)}\\ &=\frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{\left ((b e g (1-2 m)-2 c (e f (1-m)-d g m)) (d+e x)^m \left (1+\frac{e x}{d}\right )^{-m}\right ) \int \frac{\left (1+\frac{e x}{d}\right )^m}{\left (c d^2-b d e-b e^2 x-c e^2 x^2\right )^{3/2}} \, dx}{2 c e (1-m)}\\ &=\frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{\left ((b e g (1-2 m)-2 c (e f (1-m)-d g m)) (d+e x)^m \left (1+\frac{e x}{d}\right )^{\frac{1}{2}-m} \sqrt{c d^2-b d e-c d e x}\right ) \int \frac{\left (1+\frac{e x}{d}\right )^{-\frac{3}{2}+m}}{\left (c d^2-b d e-c d e x\right )^{3/2}} \, dx}{2 c e (1-m) \sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}}\\ &=\frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}+\frac{\left (d (b e g (1-2 m)-2 c (e f (1-m)-d g m)) (d+e x)^m \left (-\frac{c d e \left (1+\frac{e x}{d}\right )}{-c d e-\frac{e \left (c d^2-b d e\right )}{d}}\right )^{\frac{1}{2}-m} \sqrt{c d^2-b d e-c d e x}\right ) \int \frac{\left (\frac{c d}{2 c d-b e}+\frac{c e x}{2 c d-b e}\right )^{-\frac{3}{2}+m}}{\left (c d^2-b d e-c d e x\right )^{3/2}} \, dx}{2 \left (-c d e-\frac{e \left (c d^2-b d e\right )}{d}\right ) (1-m) \sqrt{c d^2-b d e-b e^2 x-c e^2 x^2}}\\ &=\frac{g (d+e x)^m}{c e^2 (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}-\frac{(b e g (1-2 m)-2 c (e f (1-m)-d g m)) (d+e x)^m \left (\frac{c (d+e x)}{2 c d-b e}\right )^{\frac{1}{2}-m} \, _2F_1\left (-\frac{1}{2},\frac{3}{2}-m;\frac{1}{2};\frac{c d-b e-c e x}{2 c d-b e}\right )}{c e^2 (2 c d-b e) (1-m) \sqrt{d (c d-b e)-b e^2 x-c e^2 x^2}}\\ \end{align*}
Mathematica [A] time = 0.375407, size = 176, normalized size = 0.84 \[ \frac{2 (d+e x)^m \left (e (2 c d-b e) (-b e g+c d g+c e f)-e (b e-c d+c e x) \left (\frac{c (d+e x)}{2 c d-b e}\right )^{\frac{1}{2}-m} (b e g (1-2 m)+2 c (d g m+e f (m-1))) \, _2F_1\left (\frac{1}{2},\frac{3}{2}-m;\frac{3}{2};\frac{-c d+b e+c e x}{b e-2 c d}\right )\right )}{c e^3 (b e-2 c d)^2 \sqrt{(d+e x) (c (d-e x)-b e)}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F] time = 0.072, size = 0, normalized size = 0. \begin{align*} \int{ \left ( ex+d \right ) ^{m} \left ( gx+f \right ) \left ( -c{e}^{2}{x}^{2}-b{e}^{2}x-bde+c{d}^{2} \right ) ^{-{\frac{3}{2}}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (g x + f\right )}{\left (e x + d\right )}^{m}}{{\left (-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{\sqrt{-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e}{\left (g x + f\right )}{\left (e x + d\right )}^{m}}{c^{2} e^{4} x^{4} + 2 \, b c e^{4} x^{3} + c^{2} d^{4} - 2 \, b c d^{3} e + b^{2} d^{2} e^{2} -{\left (2 \, c^{2} d^{2} e^{2} - 2 \, b c d e^{3} - b^{2} e^{4}\right )} x^{2} - 2 \,{\left (b c d^{2} e^{2} - b^{2} d e^{3}\right )} x}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (d + e x\right )^{m} \left (f + g x\right )}{\left (- \left (d + e x\right ) \left (b e - c d + c e x\right )\right )^{\frac{3}{2}}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (g x + f\right )}{\left (e x + d\right )}^{m}}{{\left (-c e^{2} x^{2} - b e^{2} x + c d^{2} - b d e\right )}^{\frac{3}{2}}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]